<?php
require_once 'classes/Database.php';
require_once 'classes/ProductManager.php';

$pm = new ProductManager();
$products = $pm->getAllProducts(false);

echo "商品数量: " . count($products) . PHP_EOL;
foreach($products as $p) {
    echo "ID: " . $p['id'] . ", 名称: " . $p['name'] . ", 状态: " . $p['status'] . PHP_EOL;
}
?>
